<div class="content-section" id="myContent" >
    <div class="title col-sm-12">
        <div class="col-sm-2">
            <span>{{title}}</span>
        </div>
        <div class="col-sm-10 pull-right">
            <button type="button"
                    class="pull-right"
                    pButton
                    (click)="goBack()"
                    icon="fa-close"
                    style="width: 30px"></button>
        </div>
    </div>
    <form [formGroup]="myForm" class="form-horizontal">
        <div class="form-group">
            <label class="col-sm-1 control-label">
                <span ngClass="start_red" *ngIf="hasCapArea">*</span>归属区域：</label>
            <div class="col-sm-5 ui-fluid-no-padding ui-fluid">
                <p-dropdown [options]="spaceBelong"
                            [(ngModel)]="spaceNodeObj.father"
                            placeholder="{{ spaceNodeObj.father }}"
                            formControlName="father"
                            [style]="{'width':'100%'}"
                ></p-dropdown>
            </div>
            <label class="col-sm-1 control-label">
                <span ngClass="start_red">*</span>数据中心名称：</label>
            <div class="col-sm-5 ui-fluid-no-padding">
                <input type="text"
                       class=" form-control"
                       pInputText
                       [(ngModel)]="spaceNodeObj.name"
                       formControlName="remark"/>
                <div class="ui-message ui-messages-error ui-corner-all" *ngIf="remark">
                    <i class="fa fa-close"></i>
                    不能为空
                </div>
            </div>
        </div>
        <div class="form-group ">
            <div class="col-sm-12 ui-no-padding-left-15px ">
                <button class="pull-right  ui-button-secondary" pButton type="button"    (click)="goBack()" label="取消"></button>
                <button  class="pull-right ui-margin-right-10px" pButton type="button" (click)="save()" label="保存" ></button>
            </div>
        </div>
    </form>
    <p-growl [(value)]="message"></p-growl>
</div>
